package org.jeecg.modules.front.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.front.entity.WorkOrder;
import org.jeecg.modules.front.model.WorkOrderModel;
import org.jeecg.modules.front.vo.CompleteOrderVo;
import org.jeecg.modules.front.vo.TicketPersonVo;
import org.jeecg.modules.front.vo.TypeVo;

import java.util.List;

public interface HomeWorkOrderMapper extends BaseMapper<WorkOrder> {

    List<TicketPersonVo> individualCompletion(@Param("workOrderModel") WorkOrderModel workOrderModel);

    int count(@Param("x") int x);

    double avg();

    int finish(@Param("x") int x);

    List<CompleteOrderVo> finishList(@Param("x") int x);

    List<TypeVo> orderType();
}
